package com.wanmait.recruit.service.impl;

import com.github.pagehelper.PageInfo;
import com.wanmait.recruit.mapper.AdminRoleMapper;
import com.wanmait.recruit.pojo.AdminRole;
import com.wanmait.recruit.pojo.Company;
import com.wanmait.recruit.service.AdminRoleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service("adminRoleService")
public class AdminRoleServiceImp implements AdminRoleService {
    @Resource
    private  AdminRoleMapper adminRoleMapper;


    @Override
    public void insert(AdminRole object) {
        adminRoleMapper.insert(object);
    }

    @Override
    public void delete(AdminRole object) {

    }

    @Override
    public void update(AdminRole object) {

    }

    @Override
    public PageInfo<AdminRole> search(int pageNum, int pageSize) {
        return null;
    }

    @Override
    public void deleteById(Integer adminId, Integer roleId) {
        AdminRole adminRole = new AdminRole();
        adminRole.setAdminId(adminId);
        adminRole.setRoleId(roleId);
        adminRoleMapper.deleteById(adminRole);
    }
}
